package com.datastory;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author hshe 2018/6/28.
 */
public class AppMainForTomcat extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        //使用tomcat 启动。
        return builder.sources(AppMain.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(AppMain.class);
    }
}
